
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/resources/css/main.css>" type="text/css">
    <%--<link rel="stylesheet" href="<c:url value="/resources/css/main.css"/>">--%>
        <%--<link rel="stylesheet" href="../../../resources/css/css.css" type="text/css">--%>
    <style type="text/css">
        body{font-family:"微软雅黑";}
        .head_a{  font-size: 16px;text-align: center;text-decoration: none; }
        a,a:visited{text-decoration: none;color: #000000;}
        a:hover{text-decoration: none;color: red;}
        *{margin: 0;padding: 0;}
.box{border:1px solid red;width: 600px;height: 300px;margin: auto;}
        .title{width: 600px;height: 50px;background: #F0F8FF;line-height: 50px;}
        .main{width: 600px;height: 30px;background: #F7F7F7;line-height: 30px;}
    </style>
</head>
<body>
<div class=box>
<div class="title"><a href="/user/add" class="head_a">添加用户</a><br/></div>
${LoginUser.username}<br/>
<%--<c:forEach items="${users}" var="vm">--%>
    <%--<a href="${vm.value.username}"> ${vm.value.username}</a>-----%>
    <%--${vm.value.password}----------%>
    <%--${vm.value.nickname}----------%>
    <%--<a href="${vm.value.username}">删除</a><br>--%>
    <%--<br>--%>
<%--</c:forEach>--%>
<div class="main"><c:forEach items="${users}" var="vm">
    ${vm.value.username}----
    <a href="${vm.value.username}"> ${vm.value.nickname}</a>------
    ${vm.value.password}---<a href="${vm.value.username}/delete">删除</a>-------<a href="${vm.value.username}/update">更新</a><br>
</c:forEach></div>
</div>
</body>
</html>

